import { FC } from "react";
import { Table } from "antd";
import "./menu.module.scss";
import menus from "@/mock/menu.json";
const columns = [
  {
    title: "姓名",
    dataIndex: "name",
    key: "name",
  },
  {
    title: "年龄",
    dataIndex: "age",
    key: "age",
  },
  {
    title: "住址",
    dataIndex: "address",
    key: "address",
  },
];
const Menus: FC = () => {
  return (
    <>
      <Table
        className="y_menus"
        columns={columns}
        dataSource={menus}
        rowKey="path"
        pagination={false}
      />
    </>
  );
};
export default Menus;
